﻿<!DOCTYPE>
<html>
<#include "../head.html">
<body class="full">
	<#include "../top.html">
	<!-- div.main start  -->
	<div class="main">
		<!-- div.main_left start  -->
		<div class="main_left"><#include "left.html"></div>
		<!-- div.main_left end  -->
		<!-- div.main_right start  -->
		<div class="main_right">
			<#include "banner.html">
			<#include "../../common/function.html">
			<div class="main_content">
				<form action="" method="post">
				<table  border="0"  cellspacing="1" bgcolor="#CCCCCC" width="100%">
					<tr>
						<td width="" class="main_td">用户名</td>
						<td width="" class="main_td">资金总额</td>
						<td width="" class="main_td">可用资金</td>
						<td width="" class="main_td">冻结资金</td>
						<td width="" class="main_td">待收资金（1）</td>
			            <td width="" class="main_td">待收资金（2）</td>
			            <td width="" class="main_td">充值资金（1）</td>
			            <td width="" class="main_td">充值资金（2）</td>
			            <td width="" class="main_td">其中：线上</td>
			            <td width="" class="main_td">其中：线下（1）</td>
			            <td width="" class="main_td">其中：线下（2）</td>
			            <td width="" class="main_td">成功提现金额</td>
			            <td width="" class="main_td">投标奖励金额</td>
			            <td width="" class="main_td">投标已收利息</td>
			            <td width="" class="main_td">投标待收利息</td>
			            <td width="" class="main_td">借款标奖励</td>
			            <td width="" class="main_td">借款管理费</td>
			            <td width="" class="main_td">待还利息</td>
			            <td width="" class="main_td">流转待还利息</td>
			            <td width="" class="main_td">待还本金</td>
			            <td width="" class="main_td">流转标待还本金</td>
			            <td width="" class="main_td">借款已还利息</td>
			            <td width="" class="main_td">流转表借款已还利息</td>
			            <td width="" class="main_td">系统扣费</td>
			            <td width="" class="main_td">推广奖励</td>
			            <td width="" class="main_td">VIP扣费</td>
			            <td width="" class="main_td">逾期支出</td>
			            <td width="" class="main_td">逾期收入</td>
					</tr>
					 <#list list as item>
					<tr>
						<td>${item.username!""}</td>
						<td>${ceil(item.total!0)}</td>
						<td>${ceil(item.use_money!0)}</td>
						<td>${ceil(item.no_use_money!0)}</td>
						<td>${ceil(item.collection!0)}</td>
						<td>${ceil(item.allcollection!0)}</td>
						<td>${ceil(item.recharge_money!0)}</td>
			            <td>${ceil(item.log_recharge_money!0)}</td>
			            <td>${ceil(item.up_recharge_money!0)}</td>
			            <td>${ceil(item.down_recharge_money!0)}</td>
			            <td>${ceil(item.houtai_recharge_money!0)}</td>
						<td>${ceil(item.cash_money!0)}</td>
						<td>${ceil(item.invest_award!0)}</td>
						<td>${ceil(item.invest_yeswait_interest!0)}</td>
						<td>${ceil(item.wait_interest!0)}</td>
						<td>${ceil(item.borrow_award!0)}</td>
						<td>${ceil(item.borrow_fee!0)}</td>
			            <td>${ceil(item.repayment_interest!0)}</td>
			            <td>${ceil(item.flow_repayment_interest!0)}</td>
			            <td>${ceil(item.repayment_principal!0)}</td>
			            <td>${ceil(item.flow_repayment_principal!0)}</td>
			            <td>${ceil(item.yes_repayment_interest!0)}</td>
			            <td>${ceil(item.flow_yes_repayment_interest!0)}</td>
			            <td>${ceil(item.system_fee!0)}</td>
						<td>${ceil(item.invite_money!0)}</td>
						<td>${ceil(item.vip_money!0)}</td>
			            <td></td>
			            <td></td>
					</tr>
					</#list> 
					<tr>
					<td colspan="10" class="action">
						<div class="floatl">
							<input type="button" onclick="exportxls()" value="导出列表" />
						</div>
						<div class="floatr">
							用户名：<input type="text" name="username" id="username" value=""/> <input type="button" value="搜索" onclick="sousuo()">
						</div>
					</td>
					</tr>
					<tr>
						<td colspan="9" class="page">
							<#import "../../common/page.html" as pager>  
			         	 	<@pager.pagination page=page url="/admin/cash/accountReconciliationList.html" map=param style="style1" />  
						</td>
					</tr>
				</table>
				</form>	
				<script>
				var url = 'accountReconciliationList.html?search=true';
				var xlsurl='accountReconciliationList.html?type=export'
				
				function sousuo(){
				var sou = "";
				var username = $("#username").val();
				if (username!=""){
					sou += "&username="+username;
				}
					if (sou!=""){
						location.href=url+sou;
					}
				}
				function exportxls(){
				var num='${(page.total)?c}'; 
				num=num.replace(",",""); 
				if(num>30000){ //条数自己定义，但必须小于65536 
					alert("数据过多，请选择指定的时间进行数据查询导出！"); //提示信息根据不同的内容注意修改下。 
					return false; 
				}	
				var sou = "";
				var username = $("#username").val();
				if (username!=""){
					sou += "&username="+username;
				}
				if (sou!=""){
					location.href=xlsurl+sou;
				}else{
					location.href=xlsurl;
				}					
				}
				</script>
			</div>
		</div>
		<!-- div.main_right end  -->
	</div>
	<!-- div.main end  -->
	<#include "../foot.html">
</body>
</html>
